<%@page import="org.apache.commons.lang3.StringUtils"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="user-index-head.jsp"%> 
<%
	String str = (String)request.getAttribute("ret");
	if(!StringUtils.isEmpty(str)){
		out.print("<script>alert('"+str+"');</script>");
	}
%>
 <link rel="stylesheet" href="<%=path%>/js/kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="<%=path%>/js/kindeditor/plugins/code/prettify.css" />
<script src="<%=path%>/js/kindeditor/kindeditor.js" type="text/javascript"></script>
<script src="<%=path%>/js/kindeditor/lang/zh_CN.js" type="text/javascript"></script>
<script src="<%=path%>/js/kindeditor/plugins/code/prettify.js" type="text/javascript"></script>
<script>

var editor;
KindEditor.ready(function(K) {
editor = K.create('#info', {
resizeType : 1,
allowPreviewEmoticons : false,
allowImageUpload : false,
items : [
'source','undo','redo','copy','plainpaste','wordpaste','clearhtml','quickformat','selectall','fullscreen','fontname', 'fontsize','subscript','superscript','indent','outdent','|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline','hr',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'link', 'unlink','baidumap','lineheight','table','anchor','preview','print','template','code','cut']
});

});
</script>
<div class="content">
         
          <div class="cLineB">
              <h4 class="left">自定义回复信息</h4>
              <div class="clr"></div>
          </div>
          <div class="cLine">
            <div class="pageNavigator left">
  <a href='<%=path%>/user/voiceresponse!add.do' title='新增语音回复' class='btnGrayS vm bigbtn'><img src="{iMicro::RES}/images/music.png" class="vm" />新增语音回复</a>
            </div>
          
            <div class="clr"></div>
          </div>
          <div class="msgWrap">
            <TABLE class="ListProduct" border="0" cellSpacing="0" cellPadding="0" width="100%">
              <THEAD>
                <TR>
<TH class="select">选择</TH>
                    <TH class="keywords">关键词</TH>
<TH class="keywords">标题</TH>
<TH class="answer">试听</TH>
                    
<TH class="time">时间</TH>
<TH class="edit norightborder">操作</TH>
                </TR>
              </THEAD>
              <TBODY>
                <TR></TR>
				<c:forEach var="vo" items="${page.content}">				
				<tr>
                  <td>  <input type="checkbox" name="del_id[]" value="${vo.id}" class="checkitem"></td>
                  <td>${vo.keyword}</td>
                  <td>${vo.voiceResponse.title}</td>
                  <td><div class="audiojs  error playing" classname="audiojs" id="audiojs_wrapper0"><audio src="http://stream13.qqmusic.qq.com/31319431.mp3" preload="auto"></audio>          <div class="play-pause">             <p class="play"></p>             <p class="pause"></p>             <p class="loading"></p>             <p class="error"></p>           </div>           <div class="scrubber">             <div class="progress" style="width: 0px;"></div>             <div class="loaded"></div>           </div>           <div class="time">             <em class="played">00:00</em>/<strong class="duration">00:00</strong>           </div>           <div class="error-message">Error loading: "http://stream13.qqmusic.qq.com/31319431.mp3"</div></div></td>
                
                    <td>${vo.voiceResponse.updateTime}</td>
                   <td class="norightborder"> <a href="<%=path %>/user/voiceresponse!edit.do?id=${vo.id}" title="编辑图文自定义回复">编辑</a>  <a href="<%=path %>/user/voiceresponse!delete.do?id=${vo.id}">删除</a></td>
          
                </tr>
				</c:forEach>
                                 <tr>
                <td colspan="6" class="edit norightborder"> <input type="checkbox" id="chkall" name="chkall" onclick="checkAll(this.form, 'del_id')"><label for="checkallBottom">全选</label>
<input type="radio" name="optype" checked="checked" value="1"   >
删除


          <a href="JavaScript:void(0);" class="btnGreens" onclick="if(confirm('您确定操作吗?')){checkvotethis();}"><span>确定</span></a>
</td>
                </tr>
              </TBODY>
            </TABLE>
           <script>
   function checkvotethis() {
var aa=document.getElementsByName('del_id[]');
var mnum = aa.length;
j=0;
for(i=0;i<mnum;i++){
if(aa[i].checked){
j++;
}
}
if(j>0) {
document.getElementById('info').submit();
} else {
alert('未选中任何文章或回复！')
}
}

   </script>
          </div>
            


 
 
          <div class="cLine">
            <div class="pageNavigator right">
                 <div class="pages"></div>
              </div>
            <div class="clr"></div>
          </div>
        </div>

        <div class="clr"></div>
      </div>
    </div>
  </div>
  <script>

function checkAll(form, name) {
for(var i = 0; i < form.elements.length; i++) {
var e = form.elements[i];
if(e.name.match(name)) {
e.checked = form.elements['chkall'].checked;
}
}
}


  </script>
  <!--底部-->
  	</div>
<include file="Public:footer"/>